/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package tickets;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;

/**
 *
 * @author Nacho
 */
public class Comentarios {
    Conexion conexion;
    Usuario user;
    ArrayList<Comentario> comentarios;
    private int ticketID;
    
    
    public Comentarios(int ticketID){
        this.ticketID=ticketID;
        
    }
    public  ArrayList<Comentario> getComentarios(){
        
    return null;
    }
    public void insertaComentario(String comment, Usuario user){
        DateFormat dateFormat = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");
        Date date = new Date();
        
        Comentario c;
        c = new Comentario(ticketID, comment, dateFormat.format(date),user, conexion);  
    }
    
    
}
